﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;

namespace Charades.Web.DAL.DBMSAdapters.Dummy 
{
	/// <summary>
	/// Simple stub for testing purposes
	/// </summary>
	public sealed class DummyAdapter : IDBMSAdapter
	{
		
		public void InitAdapter()
		{
			
		}

		/// <summary>
		/// Fetches words from plain text file
		/// </summary>
		/// <returns></returns>
		public List<string> FetchAllWords()
		{
			var path = AppDomain.CurrentDomain.BaseDirectory + @"App_Data\word_base.txt";
			return File.ReadAllLines(path).ToList();
		}

		public void Dispose()
		{
			
		}
	}
}